﻿#ifndef _OI_BELTSPLICE_DEFINITIONEDITDLG_H_
#define _OI_BELTSPLICE_DEFINITIONEDITDLG_H_

#include "PLScannerCore/OiPLScannerCore.hpp"

namespace Oi
{
    namespace PLScannerCore
    {
        class DefinitionEditDlg : public QDialog
        {
            Q_OBJECT

        public:
            DefinitionEditDlg(const DefinitionType type, QWidget * parent = nullptr);

        public:
            void setParams(const ProductParams params);
            ProductParams params() const;

        public:
            void closeEvent(QCloseEvent * evt);

        public slots:
            void onUpdateProfile();
            void onInsert();
            void onRemove();
            void onEdit();
            void onEditCompleted();

        private:
            OI_DISABLE_COPY(DefinitionEditDlg);
            OI_DECLARE_IMPL(DefinitionEditDlg);
        };
    }
}


#endif